import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.scss';
import { RouterProvider } from "react-router-dom";
import router from './router';
import { Provider } from 'react-redux';
import store from './store';
import locale from 'antd/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import { ConfigProvider } from 'antd'; // 确保引入 ConfigProvider
dayjs.locale('zh-cn');


const root = ReactDOM.createRoot(document.getElementById('root'));

root.render(
<ConfigProvider locale={locale}>
    <Provider store={store}>
        <RouterProvider router={router}></RouterProvider>
    </Provider>
 </ConfigProvider>
);

